import request from '@/utils/request'
// 新增个人认证
export function addMemberUser(data) {
    return request({
        url: '/member/web/memberUser',
        method: 'post',
        data: data
    })
}

// 修改个人认证
export function updateMemberUser(data) {
    return request({
        url: '/member/web/memberUser',
        method: 'put',
        data: data
    })
}

// 查询个人认证信息


export function getMemberUserInfo(memberId) {
    return request({
        url: "/member/web/memberUser/info/"+memberId,
        method: 'get',

    })
}
// 查询企业认证信息


export function getMemberEnterInfo(memberId) {
    return request({
        url: "/member/web/memberEnter/info/"+memberId,
        method: 'get',

    })
}


export function getMemberInfo(memberId) {
    return request({
        url: "/member/web/members/"+memberId,
        method: 'get',

    })
}

export function updateMemberInfo(data) {
    return request({
        url: "/member/web/members",
        method: 'put',
		data:data
    })
}

// 新增企业认证
export function addMemberEnter(data) {
    return request({
        url: '/member/web/memberEnter',
        method: 'post',
        data: data
    })
}

// 修改企业认证
export function updateMemberEnter(data) {
    return request({
        url: '/member/web/memberEnter',
        method: 'put',
        data: data
    })
}


// 求职列表
export function getWantedList(querydata) {

    return request({
        url: '/person/web/WANTED/list',
        method: 'get',
        data:querydata
    })
}
// 求职信息新增
export function addWanted(data) {
    const personJobWanted =data
    return request({
        url: '/person/web/WANTED',
        method: 'post',
        data: personJobWanted
    })
}
// 求职列表编辑
export function updataWanted(data) {
    const personJobWanted =data
    return request({
        url: '/person/web/WANTED',
        method: 'put',
        data: personJobWanted
    })
}
// 求职信息删除
export function delWanted(ids) {

    return request({
        url: '/person/web/WANTED/'+ids,
        method: 'delete',

    })
}
// 招聘列表
export function getRecruitList(querydata) {

  return request({
    url: '/person/web/RECRUIT/list',
    method: 'get',
    data:querydata
  })
}
// 招聘信息新增
export function addRecruit(data) {
  const personRecruit =data
  return request({
    url: '/person/web/RECRUIT',
    method: 'post',
    data: personRecruit
  })
}
// 招聘列表编辑
export function updataRecruit(data) {
  const personRecruit =data
  return request({
    url: '/person/web/RECRUIT',
    method: 'put',
    data: personRecruit
  })
}
// 招聘信息删除
export function delRecruit(ids) {

  return request({
    url: '/person/web/RECRUIT/'+ids,
    method: 'delete',

  })
}
// 提交内容管理
export function SubmitWANTED(ids) {
  return request({
    url: '/person/web/WANTED/submit/' + ids,
    method: 'put',
  })
}
// 提交内容管理
export function SubmitRecruit(ids) {
  return request({
    url: '/person/web/RECRUIT/submit/' + ids,
    method: 'put',
  })
}

export function getTRecruitList(querydata) {

  return request({
    url: '/person/web/RECRUIT/Tlist',
    method: 'get',
    data:querydata
  })
}

export function getTWANTEDList(querydata) {

  return request({
    url: '/person/web/WANTED/Tlist',
    method: 'get',
    data:querydata
  })
}

